<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

echo $Html->a(array(
	'text' => __('Home'),
	'href' => MODULE_WWW,
	'class' => 'button',
	'data-icon' => 'home'
));
echo $Html->a(array(
	'text' => __('Go to web'),
	'href' => SCENE_WWW,
	'class' => 'button',
	'data-icon' => 'extlink',
	'target' => '_blank'
));

echo $Form->select(array(
	'options' => $menu_tables,
	'first_option' => __('Tables').':',
	'option_text' => 'name',
	'option_value' => 'url',
	'onchange' => 'document.location=this.value',
	'value' => path(true, true, 'list'),
));

echo $Form->select(array(
	'value' => path(),
	'first_option' => __('Utils').':',
	'options' => array(
		path('utils', 'gettext') => __('Gettext'),
		path('utils', 'update-db') => __('Update DB'),
		path('utils', 'svn-update') => __('Update SVN')
	),
	'onchange' => 'document.location=this.value',
));

if ($admin_data_language) {
	echo $Form->select(array(
		'value' => $admin_data_language,
		'options' => $admin_data_languages,
		'first_option' => __('Data language'),
		'option_text_as_value' => true,
		'onchange' => 'document.location=\''.path().'?phpcan_action[language]=\' + this.value'
	));
	
}
?>
